def StrToInt(s):
    return reduce(lambda a,b: a<<8 | b, map(int, s.split(".")))
def IntToStr(ip):
    return ".".join(map(lambda n: str(ip>>n & 0xFF), [24,16,8,0]))
